// pages/index/index.js
Page({
  data: {
    src: ['../../img/5b73d019N266e57ff.jpg', '../../img/5b864d6aNda437396.jpg'],
    item:
      [
        {'img':'../../img/5b8a99e9Nfcf5eb05.png',
          'text':'超级超市'
        },
        {'img':'../../img/5ad87b67N1ebcb69b.png',
          'text':'精品服饰'
        },
        {
          'img': '../../img/5b03b170Nc9e0ec7c.png',
          'text': '全球购'
        }
      ],
      item_2:[
        {
          'img': '../../img/5b8c8b39N683b5626.png',
          'text': '新鲜送达'
        },
        {
          'img': '../../img/5b03b902N8cc08b40.png',
          'text': '排行榜'
        },
        {
          'img': '../../img/5b0cea29N8fb2865f.png',
          'text': '全部'
        }
      ],
    src_1: ['../../img/20180903234813.png'],
    comp:[
      {
        'text_big':'玩3C',
        'text_little':'全速旗舰 限量抢购',
        'img_left':'../../img/微信截图_20180903120901.png',
        'img_right':'../../img/微信截图_20180903120908.png',
        'style': 'border-bottom:1rpx solid 	rgba(000, 000, 000, 0.2)'
      },
      {
        'text_big': '个人超级家电',
        'text_little': '家电狂欢 惊喜有你',
        'img_left': '../../img/微信截图_20180903120921.png',
        'img_right': '../../img/微信截图_20180903120927.png',
        'style':'border-left:1rpx solid 	rgba(000, 000, 000, 0.2);border-bottom:1rpx solid 	rgba(000, 000, 000, 0.2)',

      },
      {
        'text_big': '个人超级超市',
        'text_little': '超市好货特价抢',
        'img_left': '../../img/微信截图_20180903120936.png',
        'img_right': '../../img/微信截图_20180903120944.png',
        'style': 'border-bottom:1rpx solid 	rgba(000, 000, 000, 0.2)'
      },
      {
        'text_big': '爱家',
        'text_little': '居家日用 部分满199减100',
        'img_left': '../../img/微信截图_20180903120950.png',
        'img_right': '../../img/微信截图_20180903120954.png',
        'style': 'border-left:1rpx solid rgba(000, 000, 000, 0.2) ;border-bottom:1rpx solid 	rgba(000, 000, 000, 0.2)',
      }
      ],
    show_focus:false,
    iconSize: 23,
    iconColor: '#D4D4D4',
    iconType: 'search',
    indicatorDots: true,
    vertical: false,
    autoplay: true,
    circular: false,
    interval: 2000,
    duration: 500,
    previousMargin: 0,
    nextMargin: 0,
    sk:true
},
 click:function(e){
   console.log(e.currentTarget.id);
   switch (e.currentTarget.id){
          case 'swiper_0':
            wx.navigateTo({
              url: '../../activities/dell/dell'
              });
              break; 
    }
  },
  move_buys:function(){
    wx.navigateTo({
      url: '../../buys/buys?id=0'
    });
 }
 
})